package com.test;

import android.app.Activity;
import android.databinding.DataBindingUtil;
import android.os.Bundle;

import com.test.databinding.ActivityMainBinding;
import com.test.model.Presenter;
import com.test.model.User;

public class MainActivity extends Activity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityMainBinding mBinding = DataBindingUtil.setContentView(this,R.layout.activity_main);
        User user = new User("翠花","王");
        mBinding.setUser(user);

        Presenter presenter = new Presenter(this);
        mBinding.setPresenter(presenter);
    }

}
